import request from '@/relyon/request'

// 添加喜欢
export function addLike(params){
    return request({
        url : '/link/emit',
        method : 'post',
        data:params,
    })
}

//取消喜欢
export function delLike(params){
    return request({
        url : '/link/dels',
        method : 'post',
        data:params,
    })
}

// 获取喜欢的音乐列表
export function getLikeMusicList(params){
    return request({
        url : '/link/list',
        method : 'get',
        params
    })
}

export default {
    addLike,
    delLike,
    getLikeMusicList
}